package cn.bluethink.eguan.model.core;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonInclude;

/**
 * @title 包裹对象
 * @Copyright 苏州中科蓝迪公司所有(c)2016-2021
 * @version 0.1
 *
 * @note 修订历史： （1）liuxn于2018年8月14日构建初始版本0.1
 * （2）giszyj@126.com于2018年10月06日修改继承关系
 */
public class EgBag {
	/**
	 * 包裹唯一标识
	 */
	private Long id;
	
	/**
	 * 包裹图标
	 */
	@JsonInclude(JsonInclude.Include.NON_NULL)
	private String icon = null;

    /**
	 * 该包裹中所包含的物品或商品，为空时不返回到前端
	 */
	@JsonInclude(JsonInclude.Include.NON_NULL)
	List<EgGoods> goods = null;
	
	/**
	 * 包裹更新时间
	 */
	@JsonInclude(JsonInclude.Include.NON_NULL)
	private Date utime;

	/**
	 * @since 1.0.0
	 * @roseuid 5B6D539003D7
	 */
	public EgBag() {

	}
	
	public EgBag(Long id, String icon ) {
	    this.id = id;
	    this.icon = icon;
    }

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	
	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public List<EgGoods> getGoods() {
		return goods;
	}

	public void setGoods(List<EgGoods> goods) {
		this.goods = goods;
	}
	
	public Date getUtime() {
		return utime;
	}

	public void setUtime(Date utime) {
		this.utime = utime;
	}
}
